import os, urllib

class CookieSys:
	def __init__(self, sep='|'):
		self.sep = sep

	def ParseLine(self, LineStr):
		tmparray = []
		tmpline = []
		xxline = []
		linenow = urllib.unquote(LineStr)
		tmparray = linenow.split(';');
		#### Drop Error Line ####
		if len(tmparray) < 3: return False
		#print linenow
		userid = tmparray[0][2:]
		if not tmparray[0].startswith('k:') : return False
		#if not userid.isdigit(): return False
		del tmparray[0]
		tmparray = filter(lambda x: x, tmparray)
		return userid
		#########################

		for line in tmparray:
			tmpline = line.split('|')
			
